<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/include/context.jsp"%>
<<script type="text/javascript">

	function change() {
		var controls = document.getElementsByTagName("input").value;
		var i=0;
		for ( var i = 0; i < controls.length; i++) {
			if (controls[i].type == 'text') {

				controls[i].value = "不能为空！"; //给指定的text添加value          };
				i++;
			}
		}
		if(i>0){
			return false;
		}else{
			return true;
		}
	}
</script>
<form id="form1"
	action="${ctx}/purchase/companygps/${empty user || empty user.id ?'save':'update' }"
	method="post" style="margin: 0px;"
	onSubmit="change()">

	<input type="hidden" name="user.id" value="${user.id}">
	
	<table cellspacing="0" cellpadding="0" class="form-grid">
		<tbody>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 30%;">企业名称：</td>
				<td><input id="user.companyName" type="text" name="user.companyName"
					value="${user.companyName}" size="15" /></td>
				<td style="text-align: right; padding-right: 3px; width: 30%;">企业编号：</td>
				<td><input type="text" name="user.companyId"
					value="${user.companyId}" size="15" /></td>
						<td style="text-align: right; padding-right: 3px; width: 30%;">企业简称：</td>
				<td><input type="text" name="user.companyShort"
					value="${user.companyShort}" size="15" /></td>
						<td style="text-align: right; padding-right: 3px; width: 30%;">企业位置名称：</td>
				<td><input type="text" name="user.companyPositionName"
					value="${user.companyPositionName}" size="15" /></td>
			</tr>
			<tr>
			 <td style="text-align: right; padding-right: 3px; width: 30%;">经度：</td>
				<td><input type="text" name="user.locLongtitude"
					value="${user.locLongtitude}" size="15" /></td>
						<td style="text-align: right; padding-right: 3px; width: 30%;">纬度：</td>
				<td><input type="text" name="user.locLatitude"
					value="${user.locLatitude}" size="15" /></td>
						<td style="text-align: right; padding-right: 3px; width: 30%;">企业分类描述：</td>
				<td><input type="text" name="user.position"
					value="${user.position}" size="15" /></td>
				<td style="text-align: right; padding-right: 3px; width: 30%;">范围：</td>
				<td><select name="user.scope">
						<c:forEach var="department" items="${departmentList}"
							varStatus="status">
							<option value=${department.id }>${
								department.scopename}</option>
						</c:forEach>
				</select></td>
				

			</tr>

			<tr>
				<td></td>
				<td colspan="3"></td>
			</tr>
		</tbody>
	</table>

	<div class="window_footer">
		<input type="submit" value="确定">
	</div>
</form>




